package com.test.springbootdemo.runner;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;


/**
 * 启动后调用一次
 */
//@Component
public class MyRunner implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        System.out.println("MyRunner.....");

        for (String s : args){
            System.out.println(s);
        }

    }
}
